﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LINQ_Laboration
{
    public class Product
    {
        public int ProductId { get; set; }
        public string ProductName { get; set; }
        public string Category { get; set; }
        public decimal UnitPrice { get; set; }
        public int UnitsInStock { get; set; }

        public Product()
        {

        }

        public Product(int productId, string productName, string category, decimal unitPrice, int unitInStock)
        {
            ProductId = productId;
            ProductName = productName;
            Category = category;
            UnitPrice = unitPrice;
            UnitsInStock = unitInStock;
        }

        public override string ToString()
        {
            return string.Format("ProductId: {0},\r\n ProductName: {1},\r\n Category: {2},\r\n UnitPrice: {3},\r\n UnitInStock: {4}\r\n", ProductId, ProductName, Category, UnitPrice, UnitsInStock);
        }
    }
}
